// -----------------------------
// Author: 		Dhaenens Gert 
// Creation: 	2/16/2015 9:28:03 PM				
// -----------------------------

#ifndef _DxIncludes_h
#define _DxIncludes_h

#include <DXGI1_2.h>
#include <D3D11_1.h>

#include <client.h>
using namespace Microsoft::WRL;

namespace Flow
{

	inline DXGI_FORMAT ToDXGIFormat(TextureFormat::Enum format)
	{
		switch (format)
		{
		case TextureFormat::R8B8G8A8:
			return DXGI_FORMAT_R8G8B8A8_UNORM;
		case TextureFormat::R32B32G32A32:
			return DXGI_FORMAT_R32G32B32A32_FLOAT;
		default:
			return DXGI_FORMAT_UNKNOWN;
		}
	}

}

#endif